import request from '@/utils/request'

export function dgutLogin(data) {
  return request({
    url: '/login',
    method: 'get',
    params: data
  })
}

export function login(data) {
  return request({
    url: '/login',
    method: 'post',
    data
  })
}

export function getInfo() {
  return request({
    url: 'user/info',
    method: 'get'
  })
}

export function newDgutLogin(data) {
  return request({
    url: '/new_login',
    method: 'get',
    params: data
  })
}

export function newLogin(data) {
  return request({
    url: '/new_login',
    method: 'post',
    data
  })
}
